import request from '../utils/request'

//学生管理-成绩管理
//初次渲染
export function studentcj( payload = {} ){
  return request({
      url:'http://localhost:3000/posts',
      params: payload,
      method:'get'
  })
}
//删除数据
export function delcj( payload = {} ){
  return request({
      url:'http://localhost:3000/posts/'+payload.id,
      data: payload,
      method:'DELETE'
  })
}
//修改数据
export function exitcj( payload = {} ){
  return request({
      url:'http://localhost:3000/posts/'+payload.id,
      data: payload,
      method:'patch'
  })
}